package com.daoliuhe.scaffold.model;

import java.io.Serializable;

/**
 * 分页
 */
public class Pagable implements Serializable{
	public int getBeginIndex() {
		return (page - 1) * rows + 1;
	}

	public int getEndIndex() {
		return page * rows;
	}

	private int page = 1;

	private int rows = 10;

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}
}
